<?php

/**
 * @author shuang
 * @date 2016-11-3 11:30:30
 */
use yii\helpers\Url;
$this->registerCssFile('/css/mine.css',['depends'=>['frontendx\assets\AppAsset']]);
?>
<img class="mine-banner" src="../images/mine-banner.png" alt=""/>
<div class="info">
    <img src="../images/face.png" alt=""/>
    <div class="user">
        <span>用户名：<?php echo $model->username;?></span>
        <span>ID：<?php echo $model->id;?></span>
    </div>
    <div class="text">
        <div class="left" id="shareLeft" url="mine">
            <span>¥ <?php echo Yii::$app->formatter->asDecimal($model->wallet->yet_drawal_amount + $model->wallet->amount); ?></span>
            <small>总收益</small>
        </div>
        <div class="right" id="withdrawals-jump">
            <span>¥ <?php echo Yii::$app->formatter->asDecimal($model->wallet->amount); ?></span>
            <small>我的皓币</small>
        </div>
    </div>
</div>
<div class="opt-block-1">
    <p onclick="javascript:window.location.href='<?php echo Url::toRoute(["task/mynowork"]); ?>';"><i class="left-icon"></i><span>我的任务</span><i class="arrow"></i></p>
    <p onclick="javascript:window.location.href='<?php echo Url::toRoute(["account/tixian"]); ?>';"><i class="left-icon"></i> <span>提现</span> <i class="arrow"></i></p>
    <p onclick="javascript:window.location.href='<?php echo Url::toRoute(["profile/xianxia"]); ?>';"><i class="left-icon"></i> <span class="msg">下线奖励</span></p>
    <p onclick="javascript:window.location.href='<?php echo Url::toRoute(["task/work"]); ?>';"><i class="left-icon"></i> <span>待工作</span></p>
    <p onclick="javascript:window.location.href='<?php echo Url::toRoute(["article/contact"]); ?>';"><i class="left-icon"></i> <span>联系客服</span> <i class="arrow"></i></p>
    <p onclick="javascript:window.location.href='<?php echo Url::toRoute(["article/help"]); ?>';"><i class="left-icon"></i> <span>使用帮助</span> <i class="arrow"></i></p>
    <p onclick="javascript:;"><i class="left-icon"></i> <span class="msg">被投诉</span></p>
    <p><i class="left-icon"></i> <span>意见反馈</span> <i class="arrow"></i></p>
    <p><i class="left-icon"></i> <span>账户安全</span></p>
</div>
<a href="<?php echo Url::toRoute(["site/logout"]); ?>"><button class="logout">退出登陆</button></a>